import math
a = float(input())
b = float(input())
X = (-b + math.sqrt((2 * a) * math.sin((60 * math.pi) / 180) * math.cos((60 * math.pi) / 180))) / (2*a)
print(f'{X:.2f}')